﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="reset-password.aspx.cs" Inherits="reset_password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="../hr/css/content.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
<!-- Showcase Banner  |  Start -->
<div id="showcase">
<div id="canvas" class="career">
<!-- #Include file="../includes/showcase_nav.inc" -->


<div class="grid z30"></div>

<div class="manlady z25"></div>
<div class="bg z20"></div>
<div id="cloud_big" class="career z15"></div>
<div class="sun z10"></div>

</div>
</div>
<!-- Showcase Banner  |  End   -->

<div class="seperator">
    </div>
    <div id="body">
    
    <!-- Right Column | Start -->
        <div class="col_left">
            <div class="menu">
                <ul>
                    <li><a href="../careers/job-list.aspx">Careers</a></li>
                    <li><a href="login.aspx" class="select">Login</a></li>
                </ul>
            </div>
        </div>
        <!-- Right Column | End   -->
        <!-- Content Column | Start -->
        <div class="col_mid">
    <div class="message">
    <!-- Quick Nav [Prev / Next]  |  Start  -->
            <div class="quick_nav_container">
                <div class="quick_nav right">
                    <div class="quick_nav_button">
                        <a href="login.aspx" class="prev">
                            <img src="../images/other/spacer.png" alt="Previous Page" width="10" height="15" /></a></div>
                    <div class="quick_nav_button">
                        <a href="#" class="empty">
                            <img src="../images/other/spacer.png" alt="Next Page" width="10" height="15" /></a></div>
                </div>
            </div>
            <!-- Quick Nav [Prev / Next]  |  End    -->
    <h1 class="heading">
                <asp:Label runat="server" ID="lblFormTitle" Text="Reset Password" /></h1>
            <div class="seperator">
            </div>
            
            <div id="divForm" runat="server">
    <table width="75%">
                <tr>
                    <td style="font-weight: bold">
                        <h3>
                            Reset Password</h3>
                    </td>
                    <td>
                        &nbsp;
                        <asp:Label ID="lblAutoKey" Visible="false" runat="server"></asp:Label>
                        <asp:Label ID="lblGUID" Visible="false" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:ValidationSummary ID="vsResetPassword" CssClass="errorSummary" HeaderText="Oops... Please complete the form"
                            runat="server" ValidationGroup="customer" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Enter New Password
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="20" Width="200px" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvNewPassword" validationErrorCssClass="validationError"
                            runat="server" ControlToValidate="txtNewPassword" Display="Dynamic" ErrorMessage=""
                            Text="" ValidationGroup="customer">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Retype New Password
                    </td>
                    <td>
                        <asp:TextBox ID="txtRetypeNewPassword" runat="server" MaxLength="20" Width="200px"
                            TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvRetypePassword" validationErrorCssClass="validationError"
                            runat="server" ValidationGroup="customer" ErrorMessage="" Text="" Display="Dynamic"
                            ControlToValidate="txtRetypeNewPassword"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CompareValidator ID="csvRetypePassword" runat="server" validationErrorCssClass="validationError"
                            Display="Dynamic" ValidationGroup="customer" ErrorMessage="" Text="Both password should be same."
                            ControlToValidate="txtRetypeNewPassword" ControlToCompare="txtNewPassword"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    <div id="divProcessing" style="display: none;">
                                    <asp:Label runat="server" ID="lblSubmitMessage" ForeColor="Red" />
                                </div>
                    <asp:Button ID="btnSubmit" CssClass="button_resetpassword" Text="Reset Password"
                            runat="server" OnClick="btnSubmit_Click" ValidationGroup="customer"
                             Width="120px" Height="35px" Font-Bold="true" OnClientClick="javascript:return SubmitConfirm();" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="lblMessage" ForeColor="Red" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            
            </div>
            
            <div id="divMessage" runat="server" visible="false">
                        <asp:Label runat="server" ID="lblSentMessage" ForeColor="Green" />
                        </div> 
    </div>
    
    </div>
    <div class="clear">
        </div>
        </div>
    <div class="seperator">
    </div>
    
    <script language="javascript" type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('customer')) {
                _retVal = confirm('Do you confirm to SUBMIT?');
                if (_retVal) {
                    document.getElementById('<%=lblSubmitMessage.ClientID%>').innerHTML = 'Processing...';
                    document.getElementById('divProcessing').style.display = '';
                    //document.getElementById('<%=lblSubmitMessage.ClientID%>').style.color = 'gray';
                    document.getElementById('<%=btnSubmit.ClientID%>').style.display = 'none';
                }
            }
            return _retVal;
        }

    </script>
</asp:Content>
